<#include "/common/head.html"/>
 <div class="easyui-panel detailPage" data-options="fit:true,border:false">
    <form id="ff" class="easyui-form" method="post">
        <table class="table1">
        	<#assign columnSize=head.dialog_size?split("x")[0]?number />
        	<#if columnSize lt 500>
        		<#assign columnSize=1 />
        	<#elseif columnSize gte 500 && columnSize lt 800 >
       			<#assign columnSize=2 />
        	<#else>
        		<#assign columnSize=3 />
        	</#if>
        	
           	<#list updateFieldList as item>
           		<#assign easyui_type="easyui-textbox" />
	        	<#if item.data_type=='timestamp' || item.data_type=='datetime' || item.data_type=='date'>
	        		<#assign easyui_type="easyui-datebox" />
        		</#if>
        		
           		<#if item_index == 0 || (item_index + 0) % columnSize == 0>
            <tr>
           		</#if>
           		<th><span>${item.column_name}：</span></th>
               	<td><span class="valueSpan">${model[item.field_name]!''}</span></td>
           		<#if item_index != 0 && (item_index + 1) % columnSize == 0>
            </tr>
           		</#if>
           	</#list>
           	<#if updateFieldList.size() % columnSize != 0>
           		<#if (columnSize - updateFieldList.size() % columnSize) == 1>
                <td colspan="2"></td>
	           	</#if>
	           	<#if (columnSize - updateFieldList.size() % columnSize) == 2>
                <td colspan="2"></td>
                <td colspan="2"></td>
	           	</#if>
            </tr>
           	</#if>
        </table>
    </form>
</div>
<script>
top.window.subPage.save = save;
function save() {
	top.window.closeWindow();
}

//扩展js
<#list jsList as item>
	<#if item.page == "detail">
${item.js_content!};
	</#if>
</#list>
</script>
<#include "/common/foot.html"/>